cmake_minimum_required(VERSION 3.24)
project(computer C)

set(CMAKE_C_STANDARD 11)
# 查找并包含必要的头文件路径
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
include_directories(${GTK3_INCLUDE_DIRS})
link_directories(${GTK3_LIBRARY_DIRS})

# 添加编译选项
add_definitions(${GTK3_CFLAGS_OTHER})
add_executable(computer main.c model/types.h model/types.c utils/computer.h utils/computer.c)

# 链接所需库文件
target_link_libraries(computer ${GTK3_LIBRARIES})